$(function() {

var chartDom = document.getElementById('biaoge');
var myChart = echarts.init(chartDom);
var option;

option = {
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'shadow'
    }
  },
  legend: {
    textStyle:{//图例文字的样式
                color:'#fff',
                fontSize:12
            }
  },
  grid: {
    left: '0%',
        top:'21px',
        right: '0%',
        bottom: '0%',
       containLabel: true
  },
  xAxis: [
    {
      type: 'category',
      data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
      axisLabel: {
                show: true,
                textStyle: {
                color: '#fff'
            }
        }
    }
  ],
  yAxis: [
    {
      type: 'value',
      axisLabel: {
                show: true,
                textStyle: {
                color: '#fff'
            }
        }
    }
  ],
  series: [
    {
      name: 'A线',
      type: 'bar',
      emphasis: {
        focus: 'series'
      },
      data: [60, 72, 71, 74, 190, 130, 110]
    },
    {
      name: 'B线',
      type: 'bar',
      emphasis: {
        focus: 'series'
      },
      data: [62, 82, 91, 84, 109, 110, 120]
    },
      {
          name: 'C线',
          type: 'bar',
          emphasis: {
              focus: 'series'
          },
          data: [69, 50, 91, 33, 56, 112, 130]
      }
  ]
};

option && myChart.setOption(option);

});